import request from "@/utils/request";

/**
 * 分页查询维护写哪些
 * @param params
 * @returns {AxiosPromise}
 */
export function queryAllByPage(params) {
  return request({
    url: "/rest/api/manager/statistics",
    method: "get",
    params
  });
}

/**
 * 保存专项服务信息
 * @param data
 * @returns {AxiosPromise}
 */
export function saveObject(data) {
  return request({
    url: "/rest/api/manager/statistics",
    method: "post",
    data
  });
}

/**
 * 跟新专项服务信息
 * @param data
 * @returns {AxiosPromise}
 */
export function updateObject(data) {
  return request({
    url: "/rest/api/manager/statistics/update",
    method: "post",
    data
  });
}

/**
 * 删除专项服务
 * @param data
 * @returns {AxiosPromise}
 */
export function deleteObject(data) {
  return request({
    url: "/rest/api/manager/statistics/del",
    method: "post",
    data
  });
}
